package com.z;

import org.apache.shiro.crypto.hash.Md5Hash;

/**
 * @ProjectName: springboot-08-shiro
 * @Package: PACKAGE_NAME
 * @ClassName: TestShiroMd5
 * @author: Arisapoke
 * @date: 2021/2/2 19:25
 * @Version: 1.0
 */
public class TestShiroMd5 {
    public static void main(String[] args) {

        //normal
        Md5Hash md5Hash = new Md5Hash("123456");
        System.out.println(md5Hash.toHex());

        //md5+salt
        Md5Hash md5Hash1 = new Md5Hash("123456", "逼逼莱濑");
        System.out.println(md5Hash1.toHex());

        //md5+salt+散列
        Md5Hash md5Hash2 = new Md5Hash("123456", "逼逼莱濑", 1024);
        System.out.println(md5Hash2.toHex());
    }
}
